<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>器材信息</title>
	<#include "/commen/commenftl.ftl" >
	<#include "/commen/commenJs.ftl">
	<#include "/commen/commenCss.ftl">
    <#include "/manage/useEquipment.ftl">
    <#include "/manage/EquipmentRecord.ftl">
    <script src="${base}/statics/js/manage/useEquipment.js" type="text/javascript"></script>
    <script src="${base}/statics/js/manage/EquipmentRecord.js" type="text/javascript"></script>
    <script src="${base}/statics/js/manage/highcharts.js" type="text/javascript"></script>
    <script src="${base}/statics/js/manage/equipmentInfoManage.js" type="text/javascript"></script>
</head>

<body>
<div id="main" class="easyui-layout" data-options="fit:true">
<div id="equipmentInfo_div_1" data-options="region:'north'" title="查询条件" style="width:300px;">
    <div id="equipmentInfo_div_2" class="zg_search" data-options="fit:true" style="height:auto;">
    <div id="searchDiv" title="查询条件" style="padding:10px">
	    <form id = 'querySubmit'>
	        <table id="equipmentInfo_table_1" cellpadding="7">
	            <tr>
	                <td>名称:</td>
	                <td>
	            		<input id="eName" data-options="validType:['lengthIncludeChinese[0,60]']"  class="easyui-textbox trim_easyuiinput" type="text" style="width: 150px;">
	                </td>
	                <td valign="bottom">使用状态:</td>
                    <td>
                        <select class="easyui-combobox"  id = "useState" data-options="editable:false,panelHeight:'auto'"  style="width: 100px;">
                            <option value="" selected="selected">全部</option>
                            <option value="111">空闲</option>
                            <option value="222">预定中</option>
                            <option value="333">使用中</option>
                        </select>
                    </td>
                    <td valign="bottom">硬件状态:</td>
                    <td>
                        <select class="easyui-combobox"  id = "eIsOk" data-options="editable:false,panelHeight:'auto'"  style="width: 100px;">
                            <option value="" selected="selected">全部</option>
                            <option value="T">正常</option>
                            <option value="F">损坏</option>
                        </select>
                    </td>
	                <td>
	                <a id="equipmentInfo_a_1" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width:95px; height:22px;" onclick="queryequipmentInfo()">搜索</a>
	                </td>
	                <td>
	                <a id="equipmentInfo_a_3" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-edit'" style="width:95px; height:22px;" onclick="editequipmentInfo()">修改</a>
	                </td>
                    <td>
					<a id="equipmentInfo_a_4" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-add'" style="width:95px; height:22px;" onclick="addequipmentInfo()">新增</a>
                    </td>
                    <td>
                        <a id="equipmentInfo_a_5" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-clear'" style="width:95px; height:22px;" onclick="clearInfo()">清空</a>
                    </td>
                    <td>
                        <a id="equipmentInfo_a_6" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-remove'" style="width:95px; height:22px;" onclick="openOrCloseequipmentInfo()">启用/禁用</a>
                    </td>
				</tr>
                <tr>
                    <td>

                    </td>
                    <td>

                    </td>
                    <td>

                    </td>
                    <td>

                    </td>
                    <td>
                        <a id="equipmentInfo_a_5" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-edit'" style="width:95px; height:22px;" onclick="getEquipmentRecord()">使用详情</a>
                    </td>
                    <td>
                        <a id="equipmentInfo_a_5" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-edit'" style="width:95px; height:22px;" onclick="reserveEquipment()">预定</a>
                    </td>
                    <td>
                        <a id="equipmentInfo_a_5" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-edit'" style="width:95px; height:22px;" onclick="stopReserveEquipment()">结束预定</a>
                    </td>
                    <td>
                        <a id="equipmentInfo_a_5" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-edit'" style="width:95px; height:22px;" onclick="useEquipment()">使用</a>
                    </td>
                    <td>
                        <a id="equipmentInfo_a_5" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-edit'" style="width:95px; height:22px;" onclick="stopUseEquipment()">结束使用</a>
                    </td>
                    <td>
                        <a id="equipmentInfo_a_5" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width:95px; height:22px;" onclick="getReserveRecordList()">预定情况</a>
                    </td>
                    <td>
                        <a id="equipmentInfo_a_5" href="javascript:void(0)"  class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width:95px; height:22px;" onclick="getUsedRecordList()">使用情况</a>
                    </td>
                </tr>
	        </table>
	    </form>
    </div>
    </div>
</div>
    <div id="equipmentInfo_div_3" data-options="region:'center',title:'查询结果'" style="padding: 10px;height:600px;">
		<table id="equipmentInfo_table_2"  class="easyui-datagrid"   >
		</table>
	</div>

	<div id="equipmentInfoEditDiv" class="easyui-dialog" title="修改器材信息" closed="true"  modal="true"  style="width:400px;height:500px;padding:10px;font-size:12px">
	<form id = "equipmentInfoEdit_form" name="equipmentInfoEdit_form">
		<table id="equipmentInfo_table_4"  cellSpacing=5 cellPadding=5 width=350 align=center>
			<tr>
				<td valign="bottom">硬件状态:</td>
                <td>
                     <select class="easyui-combobox"  id = "edit_eIsOk" data-options="editable:false,panelHeight:'auto'"  style="width: 100px;">
                            <option value="T">正常</option>
                            <option value="F">损坏</option>
                     </select> 
                </td>   
			</tr>
			<tr>
				<td>区域:</td>
				<td>
					<input class="trim_easyuiinput easyui-textbox" data-options="validType:['lengthIncludeChinese[0,50]']" id="edit_eArea" />&nbsp;<font color="#B80106">*</font>
					<input class="easyui-validatebox" id="edit_eId"  type="hidden"/>
				</td>
			</tr>
            <tr>
                <td>预定所需等级:</td>
                <td>
                    <input class="trim_easyuiinput easyui-textbox" data-options="validType:['unsignedInteger','lengthIncludeChinese[0,50]']" id="edit_eNeedLevel" />&nbsp;<font color="#B80106">*</font>
                </td>
            </tr>
            <tr>
                <td>预定所需经验:</td>
                <td>
                    <input class="trim_easyuiinput easyui-textbox" data-options="validType:['unsignedInteger','lengthIncludeChinese[0,50]']" id="edit_eNeedExp" />&nbsp;<font color="#B80106">*</font>
                </td>
            </tr>
		</table>
		 <div id="equipmentInfo_div_5" style="text-align:center;padding:5px">
        	<a href="javascript:void(0)" id="saveequipmentInfoForm1" class="easyui-linkbutton" onclick="submitequipmentInfoForm1()">保 存</a>
   		</div>
   	</form>	 
    </div>

    <div id="equipmentInfoAddDiv" class="easyui-dialog" title="新增器材信息" closed="true"  modal="true"  style="width:400px;height:500px;padding:10px;font-size:12px">
        <form id = "equipmentInfoAdd_form" name="equipmentInfoAdd_form">
            <table id="equipmentInfo_table_5"  cellSpacing=5 cellPadding=5 width=350 align=center>
                <tr>
                    <td>器材名称:</td>
                    <td>
                        <input class="trim_easyuiinput easyui-textbox" data-options="validType:['lengthIncludeChinese[0,50]']" id="add_eName" />&nbsp;<font color="#B80106">*</font>
                    </td>
                </tr>
                <tr>
                    <td>价格:</td>
                    <td>
                        <input class="trim_easyuiinput easyui-textbox" data-options="validType:['unsignedInteger','lengthIncludeChinese[0,50]']" id="add_ePrice" />&nbsp;<font color="#B80106">*</font>
                    </td>
                </tr>
                <tr>
                    <td>类型:</td>
                    <td>
                        <select class="easyui-combobox"  id = "add_eType" data-options="editable:false,panelHeight:'auto'"  style="width: 100px;">
                            <option value="111">跑步机</option>
                            <option value="222">划船器</option>
                            <option value="333">肌肉组</option>
                            <option value="444">仰卧器</option>
                            <option value="555">健步车</option>
                            <option value="666">美腰机</option>
                            <option value="777">登梯器</option>
                            <option value="888">引体杆</option>
                            <option value="999">瑜伽球</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>区域:</td>
                    <td>
                        <input class="trim_easyuiinput easyui-textbox" data-options="validType:['lengthIncludeChinese[0,50]']" id="add_eArea" />&nbsp;<font color="#B80106">*</font>
                    </td>
                </tr>
                <tr>
                    <td>预定所需等级:</td>
                    <td>
                        <input class="trim_easyuiinput easyui-textbox" data-options="validType:['unsignedInteger','lengthIncludeChinese[0,50]']" id="add_eNeedLevel" />&nbsp;<font color="#B80106">*</font>
                    </td>
                </tr>
                <tr>
                    <td>预定所需经验:</td>
                    <td>
                        <input class="trim_easyuiinput easyui-textbox" data-options="validType:['unsignedInteger','lengthIncludeChinese[0,50]']" id="add_eNeedExp" />&nbsp;<font color="#B80106">*</font>
                    </td>
                </tr>
            </table>
            <div id="equipmentInfo_div_5" style="text-align:center;padding:5px">
                <a href="javascript:void(0)" id="saveequipmentInfoForm2" class="easyui-linkbutton" onclick="submitequipmentInfoForm2()">保 存</a>
            </div>
        </form>
    </div>

 </div>
</body>
</html>
